class Pagination {
    employee(pageNumber,pageSize){
        return new Promise((resolve, reject) => {
            $.ajax({
                url: "/www.xiaomi.com/background/get/employee",
                method: "GET",
                data: {
                    pageNumber: pageNumber,
                    pageSize:pageSize
                },
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
}
